package com.lu.statistics.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lu.statistics.entity.MtWeddingPhotographers;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MtWeddingPhotographersMapper extends BaseMapper<MtWeddingPhotographers> {
    /**
     * 按摄影师电话统计摄影师数量
     * @param phone
     * @return
     */
    int queryPhotographersCount(@Param("phone") String phone);

    /**
     * 按婚庆id查询摄影师列表
     * @param weddingId
     * @return
     */
    List<MtWeddingPhotographers> queryPhotographersByWeddingId(@Param("weddingId") Integer weddingId);

    /**
     * 按套餐类型查询摄影师列表
     * @param choiceType
     * @return
     */
    List<MtWeddingPhotographers> queryPhotographersByWeddingType(@Param("choiceType") String choiceType);

    /**
     * 统计婚庆摄影师
     * @param weddingId
     * @return
     */
//    WeddingProStats queryStatsPhotographers(@Param("weddingId") Integer weddingId);
    /**
     * 按婚庆id删除摄影师列表
     * @param weddingId
     * @return
     */
    int deletePhotographersByWeddingId(@Param("weddingId") Integer weddingId);
}
